
name = 'a'
print(type(name))

name = 'abcd'
print(name[0])
print(name[1])
print(name[2])
print(name[3])


# name = 'abcd'
# # 通过索引下标获取字符串中的每一个字符
# print(name[0])  # a
# print(name[1])  # b
# print(name[2])  # c
# print(name[3])  # d
